home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1998 January / Macworld (1998-01).dmg / Serious Demos / Visual MacStandardBasic Demo / Visual MSB User's Guide / Visual MSB User's Guide.rsrc / PICT_12.png < prev    next >
Portable Network Graphic  |  1997-10-23  |  105KB  |  816x1056  |  16-bit (640 colors)
Labels: book | crt screen | monitor | plant | reckoner
OCR: Global Modulethat always exist and are accessible in all Sub and Function procedure In an example as shown below Sub procedurManyBeepsis created and called from the Start procedure The Many Beeps Sub procedure will sound the system beep the number of times specified in NumOfL oops&in this case times Subrout ines Example: Star ManyBeeps This passes the value to ManyBeeps Finish Sub ManyBeeps NumOfLoops&) Dim Num& For Num=0 NumOfI Loops Beep Next Num End Sub Sub procedure can be used when creating windows and trols These procedures are call Led wherVmt happens to that W - indow or con trol Avent ,for Le would be when user does mouse click button control Function Procedures Functions are similar to Sub proce cxrept that they return value when done Funct ion procsdare used in nume ric and stri ...